//
//  Huati_guangchang_tvCell.m
//  ainkjj
//
//  Created by MAX on 2020/4/29.
//  Copyright © 2020 zhiyiLiu. All rights reserved.
//

#import "Huati_guangchang_tvCell.h"

@implementation Huati_guangchang_tvCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setModel:(Topic_getTopicTypeData *)model{
    _model = model;
    if (model.paiming > 3) {
        self.rankLb.textColor = rgb(182,182,182);
    }else{
        self.rankLb.textColor = rgb(242,63,59);
    }
    self.rankLb.text = @(model.paiming).stringValue;
    
    self.titleLb.text = [NSString stringWithFormat:@"#%@#", model.name];
    self.taolunshuLb.text = [@(model.discussNum).stringValue stringByAppendingString:@"讨论"];
    [self.iconIv sd_setImageWithURL:[NSURL URLWithString:model.typeImg]];
}

@end
